chore(deps): update apollo graphql packages (major) #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
^4.0.0-alpha.2
->^4.0.0-alpha.2 || ^5.0.0
4.0.0-alpha.2
->5.0.0
1.0.0
->3.0.0
Release Notes
apollographql/apollo-server (@apollo/server)
v5.0.0
Compare Source
BREAKING CHANGES
Apollo Server v5 has very few breaking API changes. It is a small upgrade focused largely on adjusting which versions of Node.js and Express are supported.
Read our migration guide for more details on how to update your app.
graphql
library older thanv16.11.0
. (Apollo Server 4 supportsgraphql
v16.6.0
or later.) Upgradegraphql
before upgrading Apollo Server.@apollo/server/express4
, or you could import it from the separate package@as-integrations/express4
. In Apollo Server 5, you must import it from the separate package. You can migrate your server to the new package before upgrading to Apollo Server 5. (You can also use@as-integrations/express5
for a middleware that works with Express 5.)fetch
implementation for HTTP requests by default, instead of thenode-fetch
npm package. If your server uses an HTTP proxy to make HTTP requests, you need to configure it in a slightly different way. See the migration guide for details.startStandaloneServer
no longer uses Express. This is mostly invisible, but it does set slightly fewer headers. If you rely on the fact that this server is based on Express, you should explicitly use the Express middleware.@defer
and@stream
(which requires using a pre-release version ofgraphql
v17) now explicitly only works with version17.0.0-alpha.2
ofgraphql
. Note that this supports the same incremental delivery protocol implemented by Apollo Server 4, which is not the same protocol in the latest alpha version ofgraphql
. As this support is experimental, we may switch over from "onlyalpha.2
is supported" to "only a newer alpha or final release is supported, with a different protocol" during the lifetime of Apollo Server 5.variables
map for a variable declared in the operation as aString
) with a 400 status code, indicating a client error. This is also the behavior of Apollo Server 3. Apollo Server 4 mistakenly responds to these requests with a 200 status code by default; we recommended the use of thestatus400ForVariableCoercionErrors: true
option to restore the intended behavior. That option now defaults to true.precomputedNonce
option to landing page plugins (which was only non-deprecated for 8 days) has been removed.Patch Changes
There are a few other small changes in v5:
#8076
5b26558
Thanks @valters! - Fix some error logs to properly calllogger.error
orlogger.warn
withthis
set. This fixes errors or crashes from logger implementations that expectthis
to be set properly in their methods.#7515
100233a
Thanks @trevor-scheer! - ApolloServerPluginSubscriptionCallback now takes afetcher
argument, like the usage and schema reporting plugins. The default value is Node's built-in fetch.Updated dependencies [
100233a
]:apollographql/apollo-server (@apollo/server-integration-testsuite)
v5.0.0
Compare Source
Major Changes
Drop support for Node.JS v14, v16, and v20.
The integration test suite no longer uses
lib: ["dom"]
to tell TypeScript to assume DOM-related symbols are in the global namespace. If your integration library's test suite relied on this behavior, you may need to addlib: ["dom"]
to thecompilerOptions
section of your test suite'stsconfig.json
.Patch Changes
#8078
dabe7ba
Thanks @renovate! - Support Jest v30 as well as Jest v29.Updated dependencies [
5b26558
,100233a
,100233a
,100233a
,100233a
]:v4.12.2
Compare Source
Patch Changes
#8070
0dee3c9
Thanks @glasser! - Provide dual-build CJS and ESM for@apollo/server-integration-testsuite
.We previously provided only a CJS build of this package, unlike
@apollo/server
itself and the other helper packages that come with it. We may make all of
Apollo Server ESM-only in AS5; this is a step in that direction. Specifically,
only providing this package for CJS makes it challenging to run the tests in
ts-jest
in some ESM-only setups, because the copy of@apollo/server
fetcheddirectly in your ESM-based test may differ from the copy fetched indirectly via
@apollo/server-integration-testsuite
, causing the "lockstep versioning" testto fail.
Updated dependencies:
v4.12.1
Compare Source
Patch Changes
41f98d4
]:v4.12.0
Compare Source
Patch Changes
89e3f84
,2550d9f
]:v4.11.3
Compare Source
Patch Changes
#8010
f4228e8
Thanks @glasser! - Compatibility with Next.js Turbopack. Fixes #8004.Updated dependencies [
f4228e8
,70eecce
]:v4.11.2
Compare Source
Patch Changes
#7879
b0fb33b
Thanks @renovate! - Update graphql-http dependency#7968
68977e2
Thanks @glasser! - Upgrade supertest and superagent dependenciesUpdated dependencies []:
v4.11.1
Compare Source
Patch Changes
#7952
bb81b2c
Thanks @glasser! - Upgrade dependencies so that automated scans don't detect a vulnerability.@apollo/server
depends onexpress
which depends oncookie
. Versions ofexpress
older than v4.21.1 depend on a version ofcookie
vulnerable to CVE-2024-47764. Users of olderexpress
versions who callres.cookie()
orres.clearCookie()
may be vulnerable to this issue.However, Apollo Server does not call this function directly, and it does not expose any object to user code that allows TypeScript users to call this function without an unsafe cast.
The only way that this direct dependency can cause a vulnerability for users of Apollo Server is if you call
startStandaloneServer
with a context function that calls Express-specific methods such asres.cookie()
orres.clearCookies()
on the response object, which is a violation of the TypeScript types provided bystartStandaloneServer
(which only promise that the response object is a core Node.jshttp.ServerResponse
rather than the Express-specific subclass). So this vulnerability can only affect Apollo Server users who use unsafe JavaScript or unsafeas
typecasts in TypeScript.However, this upgrade will at least prevent vulnerability scanners from alerting you to this dependency, and we encourage all Express users to upgrade their project's own
express
dependency to v4.21.1 or newer.Updated dependencies [
bb81b2c
]:v4.11.0
Compare Source
Patch Changes
4686454
]:v4.10.5
Compare Source
Patch Changes
#7821
b2e15e7
Thanks @renovate! - Non-major dependency updates#7900
86d7111
Thanks @trevor-scheer! - Inline a small dependency that was causing build issues for ESM projectsUpdated dependencies [
b2e15e7
,86d7111
]:v4.10.4
Compare Source
Patch Changes
18a3827
]:v4.10.3
Compare Source
Patch Changes
5f335a5
]:v4.10.2
Compare Source
Patch Changes
c7e514c
]:v4.10.1
Compare Source
Patch Changes
72f568e
]:v4.10.0
Compare Source
Minor Changes
869ec98
Thanks @ganemone! - Restore missing v1skipValidation
option asdangerouslyDisableValidation
. Note that enabling this option exposes your server to potential security and unexpected runtime issues. Apollo will not support issues that arise as a result of using this option.Patch Changes
#7740
fe68c1b
Thanks @barnisanov! - Uninstalledbody-parser
and usedexpress
built-inbody-parser
functionality instead(mainly the json middleware)Updated dependencies [
869ec98
,9bd7748
,63dc50f
,fe68c1b
,e9a0d6e
]:v4.9.5
Compare Source
Patch Changes
#7717
681bdd0dc
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
07585fe39
,4fac1628c
]:v4.9.4
Compare Source
Patch Changes
ddce036e1
]:v4.9.3
Compare Source
Patch Changes
a1c725eaf
]:v4.9.2
Compare Source
Patch Changes
62e7d940d
]:v4.9.1
Compare Source
Patch Changes
ebfde0007
]:v4.9.0
Compare Source
Patch Changes
#7659
4784f46fb
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
4ff81ca50
,4784f46fb
]:v4.8.1
Compare Source
Patch Changes
#7636
42fc65cb2
Thanks @trevor-scheer! - Update test suite for compatibility with Node v20Updated dependencies [
42fc65cb2
]:v4.8.0
Compare Source
Patch Changes
#7649
d33acdfdd
Thanks @mastrzyz! - Add missingsupertest
dependency#7632
64f8177ab
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
f8a8ea08f
]:v4.7.5
Compare Source
Patch Changes
4fadf3ddc
]:v4.7.4
Compare Source
Patch Changes
#7604
aeb511c7d
Thanks @renovate! - Updategraphql-http
dependency0adaf80d1
Thanks @trevor-scheer! - Address Content Security Policy issuesThe previous implementation of CSP nonces within the landing pages did not take full advantage of the security benefit of using them. Nonces should only be used once per request, whereas Apollo Server was generating one nonce and reusing it for the lifetime of the instance. The reuse of nonces degrades the security benefit of using them but does not pose a security risk on its own. The CSP provides a defense-in-depth measure against a potential XSS, so in the absence of a known XSS vulnerability there is likely no risk to the user.
The mentioned fix also coincidentally addresses an issue with using crypto functions on startup within Cloudflare Workers. Crypto functions are now called during requests only, which resolves the error that Cloudflare Workers were facing. A recent change introduced a
precomputedNonce
configuration option to mitigate this issue, but it was an incorrect approach given the nature of CSP nonces. This configuration option is now deprecated and should not be used for any reason since it suffers from the previously mentioned issue of reusing nonces.Additionally, this change adds other applicable CSPs for the scripts, styles, images, manifest, and iframes that the landing pages load.
A final consequence of this change is an extension of the
renderLandingPage
plugin hook. This hook can now return an object with anhtml
property which returns aPromise<string>
in addition to astring
(which was the only option before).Updated dependencies [
0adaf80d1
]:v4.7.3
Compare Source
Patch Changes
75b668d9e
]:v4.7.2
Compare Source
Patch Changes
c3f04d050
]:v4.7.1
Compare Source
Patch Changes
5d3c45be9
]:v4.7.0
Compare Source
Patch Changes
#7509
5c20aa02e
Thanks @renovate! - Updategraphql-http
dependency#7475
b9ac2d6b2
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
22a5be934
]:v4.6.0
Compare Source
Patch Changes
#7454
f6e3ae021
Thanks @trevor-scheer! - Start building packages with TS 5.x, which should have no effect for usersUpdated dependencies [
1e808146a
,f6e3ae021
,e0db95b96
]:v4.5.0
Compare Source
Patch Changes
7cc163ac8
,8cbc61406
,b694bb1dd
]:v4.4.1
Compare Source
Patch Changes
#7381
29038a4d3
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
021460e95
]:v4.4.0
Compare Source
Patch Changes
f2d433b4f
]:v4.3.3
Compare Source
Patch Changes
#7338
01bc39838
Thanks @trevor-scheer! - Update graphql-http to 1.13.0Updated dependencies [
9de18b34c
,8c635d104
]:v4.3.2
Compare Source
Patch Changes
#7316
37d884650
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
f246ddb71
,e25cb58ff
]:v4.3.1
Compare Source
Patch Changes
#7285
35fa72bdd
Thanks @glasser! - Adds an integration test verifying that Rover's introspection query works. This should not break any integration that passes other tests.#7276
15c912f4c
Thanks @renovate! - Update graphql-http dependencyUpdated dependencies [
ec28b4b33
,322b5ebbc
,3b0ec8529
]:v4.3.0
Compare Source
Patch Changes
#7228
f97e55304
Thanks @dnalborczyk! - Improve compatibility with Cloudflare workers by avoiding the use of the Nodeurl
package. This change is intended to be a no-op.Updated dependencies [
3a4823e0d
,d057e2ffc
,f97e55304
,d7e9b9759
,d7e9b9759
]:v4.2.2
Compare Source
Patch Changes
#7203
2042ee761
Thanks @glasser! - Fix v4.2.0 (#7171) regression where"operationName": null
,"variables": null
, and"extensions": null
in POST bodies were improperly rejected.Updated dependencies [
2042ee761
]:v4.2.1
Compare Source
Patch Changes
#7187
3fd7b5f26
Thanks @trevor-scheer! - Update@apollo/utils.keyvaluecache
dependency to the latest patch which correctly specifies its version oflru-cache
.Updated dependencies [
3fd7b5f26
]:v4.2.0
Compare Source
Minor Changes
#7171
37b3b7fb5
Thanks @glasser! - If a POST body contains a non-stringoperationName
or a non-objectvariables
orextensions
, fail with status code 400 instead of ignoring the field.In addition to being a reasonable idea, this provides more compliance with the "GraphQL over HTTP" spec.
This is a backwards incompatible change, but we are still early in the Apollo Server 4 adoption cycle and this is in line with the change already made in Apollo Server 4 to reject requests providing
variables
orextensions
as strings. If this causes major problems for users who have already upgraded to Apollo Server 4 in production, we can consider reverting or partially reverting this change.Patch Changes
#7170
4ce738193
Thanks @trevor-scheer! - Update @apollo/utils packages to v2 (dropping node 12 support)#7179
c8129c23f
Thanks @renovate! - Fix a few tests to support (but not require) TypeScript 4.9.#7171
37b3b7fb5
Thanks @glasser! - The integration test suite now incorporates thegraphql-http
package's audit suite for the "GraphQL over HTTP" specification.#7183
46af8255c
Thanks @glasser! - Apollo Server tries to detect if execution errors are variable coercion errors in order to give them acode
extension ofBAD_USER_INPUT
rather thanINTERNAL_SERVER_ERROR
. Previously this would unconditionally set thecode
; now, it only sets thecode
if nocode
is already set, so that (for example) custom scalarparseValue
methods can throw errors with specificcode
s. (Note that a separate graphql-js bug can lead to these extensions being lost; see graphql/graphql-js#3785 for details.)Updated dependencies [
4ce738193
,37b3b7fb5
,b1548c1d6
,7ff96f533
,46af8255c
]:v4.1.1
Compare Source
Patch Changes
c835637be
]:v4.1.0
Compare Source
Minor Changes
2a2d1e3b4
Thanks @glasser! - Thecache-control
HTTP response header set by the cache control plugin now properly reflects the cache policy of all operations in a batched HTTP request. (If you write thecache-control
response header via a different mechanism to a format that the plugin would not produce, the plugin no longer writes the header.) For more information, see advisory GHSA-8r69-3cvp-wxc3.2a2d1e3b4
Thanks @glasser! - Plugins processing multiple operations in a batched HTTP request now have a sharedrequestContext.request.http
object. Changes to HTTP response headers and HTTP status code made by plugins operating on one operation can be immediately seen by plugins operating on other operations in the same HTTP request.2a2d1e3b4
Thanks @glasser! - New fieldGraphQLRequestContext.requestIsBatched
available to plugins.#7114
c1651bfac
Thanks @trevor-scheer! - Directly depend on Apollo Server rather than as a peerPatch Changes
2a2d1e3b4
,2a2d1e3b4
,2a2d1e3b4
]:v4.0.5
Compare Source
Patch Changes
15d8d65e0
,e4e7738be
,e4e7738be
,15d8d65e0
]:v4.0.4
Compare Source
Patch Changes
#7080
540f3d97c
Thanks @martinnabhan! - Recognize malformed JSON error messages from Next.js.Updated dependencies []:
v4.0.3
Compare Source
Patch Changes
#7073
e7f524eac
Thanks @glasser! - Never interpretGET
requests as batched. In previous versions of Apollo Server 4, aGET
request whose body was a JSON array with N elements would be interpreted as a batch of the operation specified in the query string repeated N times. Now we just ignore the body forGET
requests (like in Apollo Server 3), and never treat them as batched.#7071
0ed389ce8
Thanks @glasser! - Fix v4 regression: gateway implementations should be able to set HTTP response headers and the status code.Updated dependencies [
e7f524eac
,0ed389ce8
]:v4.0.2
Compare Source
Patch Changes
#7035
b3f400063
Thanks @barryhagan! - Errors resulting from an attempt to use introspection when it is not enabled now have an additionalvalidationErrorCode: 'INTROSPECTION_DISABLED'
extension; this value is part of a new enumApolloServerValidationErrorCode
exported from@apollo/server/errors
.#7066
f11d55a83
Thanks @trevor-scheer! - Add a test to validate error message and code for invalid operation names via GET#7055
d0d8f4be7
Thanks @trevor-scheer! - Fix build configuration issue and align on CJS correctlyUpdated dependencies [
b3f400063
]:v4.0.1
[Compare Source](https:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.